Part Number Hot Search : 
GBU15005 4ALVCH1 527248TP PQ208 TEA1088T BC808 C1667 SB240
Product Description
Full Text Search
 

To Download NKM2401 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 1 of 15 description the NKM2401 radio data encoder/decoder ic enables serial data to be easily transported over low power radio links and therefore allows users to quickly and easily add short range ?wireless? capabilities to their systems. it is designed for use with licence exempt transmitter and receiver modules operating in the vhf and uhf bands and provides the buffering, packetisation, encoding, error checking and ?bit bashing? required for transmitters and the reverse processes for receivers. it can be interfaced to any pc or microprocessor serial port to provide simplex (one way) transfer of data with built in error checking ensuring data integrity. it is ideally suited for use with the parallax basic stamp ? or other similar devices. features applications simple to use data acquisition transparent operation alarm systems single chip solution hand held terminals typical application introduction radio links comprising pre built and tested transmitter and receiver modules are now readily available from a number of suppliers. these are easily connected to standard encoders and decoders allowing simple on/off remote control systems to be assembled. however, sending data over these radio links is difficult as they are generally ac coupled, bandwidth limited (100hz to 5khz typical) and may be subject to noise and interference. the receiver may produce digital ?white noise? on its data output in the absence of any signal and in addition requires some time to extract the data from the received audio signal. the format of the data must also be given consideration as asymmetric data such as serial ascii (rs232) which is non dc balanced will cause the ?data slicer? in the receiver to give poor performance leading to errors after consecutive sequences of ones or zeros. there may also be considerable pulse width distortion and ? jitter? produced by the link. these radio links cannot therefore, usually be successfully connected directly to a uart, as such devices will not tolerate these errors and almost certainly will produce erroneous data which may be worse than useless ! rf transmitter busy* user application NKM2401 rf receiver data ready* user application send data* serial data in * optional handshake lines NKM2401 txd txen rxd serial data out
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 2 of 15 some form of communication protocol is required when using links over a noisy communication channel. this needs to rugged, secure and have built in error checking. a number of complex standards do exist but they are not really suited to simple radio links and they are not implemented on a simple to use ic. the NKM2401 is intended to address this problem and provides the services required for an interface between a data source and a radio module. it is intended for simplex (one way) communications and transports short packets of data and is therefore suited to ?control and sense? (bytes) rather than ?file transfer? (megabytes) tasks. the NKM2401 is configured as a ?transmitter encoder? or a ?receiver decoder? by the state of a single mode pin. it interfaces to the hosts by a simple serial interface operating at 2400 baud.
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 3 of 15 pin out schematic & description pin function - mode pin high - transmit 1 vcc +5v supply 2 serial data input, 2400bps 3 busy output. goes high whilst transmitting. active high 4 mode pin high (vcc) selects transmit mode 5 test input sends pre-set message. active low 6 transmit data output to rf transmitter 7 transmit enable output to rf transmitter. active high 8 ground. 0 volt pin function - mode pin low - receive 1 vcc +5v supply 2 data input from rf receiver 3 no connection. do not connect. factory test point. 4 mode pin low (0v) selects receive mode 5 send data output. pull high to send the data in receive buffer 6 serial data output. 2400bps 7 data ready output flag. goes low when valid data in buffer 8 ground. 0 volt vcc gnd mode data ready output serial data output send data input no connect rx data input receive mode low NKM2401 1 vcc gnd mode transmit enable transmit data test busy serial data in transmit mode high NKM2401 1
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 4 of 15 technical specifications ambient temperature 20 c supply voltage +5.0 v parameter min typical max units notes supply voltage 4.75 5.0 5.25 volts supply current 1.8 2.4 ma serial in/out baud rate 2400 bps 1 character time 4.16 ms 2 rf transmit bit time 200 us 3 rf transmit time 35 ms receive & decode time 36 ms handshake delay 1 ms serial data output time 50 ms 4 tx enable source current 8.0 20 ma operating temperature 0 20 +40 deg. c storage temperature -40 +85 deg. c notes 1) data is always ?true? i.e. same polarity as rs232 +/-12v levels but at 0v to +5v (vcc) logic levels. (start bit is logic high, stop bit is logic low.) 2) 1 start, 8 data, 1 stop = 10 bits @ 416us/bit = 4.16ms 3) manchester encoded. 4) eight bytes with handshake delay.
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 5 of 15 system timing diagram host sends 8 characters NKM2401 rf transmit 42ms 35ms approx 128ms overall and rf receive/decode 50ms NKM2401 serial data out handshake delay 1ms data ready output send data input
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 6 of 15 transmit mode interface transmit mode operation in transmit mode the NKM2401 receives eight bytes of serial data from the sending host. it stores this data in a local buffer and then calculates a crc (cyclic redundancy check) checksum on the data only. it then sets the transmit enable line high to enable the rf transmitter module and a ?busy? line high to indicate that no more data can be received. a pre-amble character is sent on the transmit data line followed by a special synchronising character, the eight bytes of data and the crc result. the complete packet of transmitted data is manchester encoded for optimum transmission over the rf link. notes 1. serial data format must be: 1 start bit, 8 data bits, 1 stop bit, no parity, 2400bps only. data is true. any data byte format may be sent (hex, decimal, ascii) 2. the serial data in status is continuously tested, waiting for the positive going start bit of a character. it must therefore normally be held low. 3. the NKM2401 accepts eight characters at a time. if more than this are sent, the internal buffer overflows and the first eight are accepted and sent, the others may be lost. radio packets always contain eight bytes of data. 4. characters can be sent to the NKM2401 character by character. there is no need for them to be in a continuous stream. when the buffer has received eight characters they will be sent. 5. the use of the ?busy? output line is optional. it goes high during transmission and may be monitored by the host to provide a ?handshaking? function if required. i.e. clear to send and not clear to send. if handshaking is not used time must be allowed for the completion of the transmission and reception of the message before sending any more data. (typically 120ms ) the ?busy? output can also be connected to a led to provide visual indication of ?busy?. test pin to aid testing and diagnostics, a test pin is provided in transmit mode. this should normally be pulled high by an external pull up resistor of 10k ohm. if this pin is switched low by a pushbutton or jumper the serial data input is ignored and an internally generated test message is transmitted whilst the test pin is held low. there is a 500ms delay between messages. the eight character message reads ?123- test?. host ground (0v) two wire interface busy serial data vcc gnd mode transmit enable transmit data test high NKM2401 1
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 7 of 15 receive mode interface data ready serial data ground (0v) led (option) 470r 10k host two wire interface vcc mode send data no connect rx data input low NKM2401 +5v data ready serial data ground (0v) led (option) 470r host three wire interface vcc mode send data no connect rx data input low NKM2401 +5v data ready serial data ground (0v) led (option) 470r host one wire interface (no handshake) vcc mode send data no connect rx data input low NKM2401 +5v +5v
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 8 of 15 receive mode operation in receive mode the NKM2401 is continually listening for messages and searching the digital ?white noise? on the receiver data output for the preamble followed by the unique synchronising character. if it finds this character it ?locks on? to the signal, decodes it and stores the data in a local buffer. the crc is calculated on the received data and if correct the ?data ready output? line is set low. handshake methods one wire interface . (beginners) this is the simplest method. the ?send data? line is permanently wired high. whenever the buffer is full (signalled by the ?data ready? line going low) it is immediately sent out on the ?serial data? line. the host must therefore always be ?ready and waiting? for this data. three wire interface . this full handshaking method allows complete flow control by the host at the expense of using two extra i/o lines. the host monitors the ?data ready? line (by polling or interrupt) until the NKM2401 signals that it has data in its buffer by setting the ?data ready? line low. when the host is ready to receive data, it must set the ?send data? line high. after a 1ms delay (to allow settling) the serial data is sent. after each character is sent there is a further 1ms delay and the ?send data? line is tested again. if it is still high another character is sent, if it is low no more characters are sent. this allows the host to unload the buffer a character at a time, process the data (at its own pace) and then collect another character. the ?data ready? line will only go high again when the buffer is empty. the only disadvantage to this method is that the NKM2401 cannot receive any more new messages until the buffer is empty. two wire interface . (advanced) this is a refinement of the above method and saves one i/o line by using a configurable bi-directional port in the host.. the ?data ready? output is connected to the ?send data? input by a 10k resistor. the host i/o line is initially set up as an input and it is normally pulled up to vcc (+5v) via the 10k resistor from the ?data ready? line. when the buffer is full the ?data ready? line goes low as above. the host should detect this state, configure the i/o line as an output and set it high when it is ready to receive the serial data. the series resistor allows the ?send data? input to be set high overriding the ?data ready? low output. when the serial data has been sent (buffer empty) the ?data ready? line returns high awaiting the next packet. status data ready output serial data output send data input no data available high low set low data ready o goes low low low send data low low r pull high sending data low serial data r keep high done r goes high low set low notes 1. the data ready line can drive an optional led which indicates when the buffer has valid data available. this is a useful diagnostic tool. 2. the send data input is tested after the transmission of each character and therefore must be held high for the total duration of transmission (eight characters) 3. the error checking (crc) ensures (with 99.9% certainty) that any message received and flagged by data ready will be error free. however if the crc fails for any reason the message is lost forever. in simplex (one way only) systems such as these it may therefore be prudent to send the message multiple times.
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 9 of 15 low cost modules usually share the same rf channel. whilst it is possible for one transmitter to transmit to many receivers, care should be taken if multiple transmitters are being used in vicinity of each other to ensure that they do not transmit simultaneously. messages may ?clash? and therefore destroy each other. there is no addressing built into the NKM2401. this should be done at the application layer embedded in the users message. e.g. first character is the address. this should be inspected by the host to determine if the intended destination has been reached.
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 10 of 15 typical application circuit notes 1. the leds are optional but very useful. 2. the txm module must be the 5v (low voltage) version. external buffering may be required to drive other modules. 3. the tp is for factory use only. aerial 10k 100n +5v data in busy serial mode vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 txen txd rf gnd 1 rf out 2 d in 5 vcc 3 gnd 4 txm-418f 5v version only test 100n pb sw busy high led 470r 10k 0v aerial 10r +5v led 470r 100n rf 1 gnd 2 dtct 3 gnd 4 vcc 5 af 6 data 7 silrx-418f 10k mode low rxd tp vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 10k serial data out data ready send data 0v 100n
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 11 of 15 connection to pc rs-232 port the NKM2401 can be directly connected to a pc rs232 port as shown above. a simple terminal programme can be used to drive the devices. in transmit mode the +/-12v pc rs232 output is connected to the rxd input via a series resistor of 47k. internal protection diodes clamp the input voltage to ground and +5v. in receive mode the serial data output is connected to the rxd input of the pc. the 0-5v logic levels will usually drive most pc serial inputs (but not all!) a series resistor of 1k provides some short circuit protection to the NKM2401. the polarity of the signals is correct for these direct connections. if longer lines need to be driven a logic level to rs232 level converter should be used. these are usually inverting so extra inverters should be connected in the signal lines. no handshaking is used in these examples as pc uarts will usually accept the eight byte packets. the hardware handshake lines of the pc should be tied as shown to defeat any hardware handshaking that may be used on some pcs or .checked by software. aerial 100n 10k +5v 5 9 4 8 3 7 2 6 1 pc at dcd dsr rts rxd txd cts dtr ri gnd busy serial data in 47k mode high rxd vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 txen txd rf gnd 1 rf out 2 d in 5 vcc 3 gnd 4 txm-418f 5v version only 100n test pb sw 470r busy led 10k aerial 0v 10r +5v led dcd dsr 5 9 4 8 3 7 2 6 1 pc at data ready serial data 100n 470r 1k vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 rxd rf 1 gnd 2 dtct 3 gnd 4 vcc 5 af 6 data 7 silrx-418f tp 10k mode low send data rts rxd txd cts dtr ri gnd 0v 100n
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 12 of 15 connection to stamp ? ? the NKM2401 provides an ideal interface to stamp ? modules. it frees valuable resources and allows users to quickly and easily add ?wireless? capabilities to their systems. the low current consumption allows the NKM2401 to be powered from the 5v regulated supply available from the stamp. stamp software examples the following code snippets demonstrate the ease of use of these modules. the familiar serin and serout commands hook in directly to the stamp and no special coding is required. transmit routines send: serout 0,n2400,("12345678") ' send message on pin 0 pause 500 ?do something useful here goto send ' send message again receive routines receive: serin 0,n2400,b1,b2,b3,b4,b5,b6,b7,b8 ?receive message on pin 0 ?store data in variables b1 to b8 pause 500 ?do something with the data goto receive ?get some more data aerial 100n 10k +5v pwr 1 gnd 2 pc0 2 pc1 4 +5v 5 res 6 p0 7 p1 8 p2 9 p3 10 p4 11 p5 12 p6 13 p7 14 stamp1 +9v busy serial data in mode vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 txen txd rf gnd 1 rf out 2 d in 5 vcc 3 gnd 4 txm-418f 5v version only test 100n pb sw busy high led 470r 0v aerial 10r led +5v +9v pwr 1 gnd 2 pc0 2 pc1 4 +5v 5 res 6 p0 7 p1 8 p2 9 p3 10 p4 11 p5 12 p6 13 p7 14 stamp1 100n 470r vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 rf 1 gnd 2 dtct 3 gnd 4 vcc 5 af 6 data 7 silrx-418f 10k mode low rxd tp serial data out send data data ready 0v 100n
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 13 of 15 no ?handshaking? is used here so adequate time must be allowed for the complete transmission, reception and handling of the message before sending another one. ( approx. 130ms) if handshaking is used the characters may be unloaded a character at a time into a single variable. real world stamp application the following circuits illustrate a working example of a stamp based data acquisition system. an adc converter and a temperature sensor transmit their data to a remote lcd display. full working software listings for the stamp code are available on disk. transmitter circuit (available as part number 1-484) +5v +9-12v dc input aerial 100n 10k +5v pwr 1 gnd 2 pc0 3 pc1 4 +5v 5 res 6 p0 7 p1 8 p2 9 p3 10 p4 11 p5 12 p6 13 p7 14 bs1-1c prog port 10k 10k +5v cs 1 +vin 2 -vin 3 gnd 4 vcc 8 clk 7 d0 6 vref 5 adc0831 clock data 10k d0 1 clk 2 rst 3 gnd 4 t(com) 5 t(lo) 6 t(hi) 7 vcc 8 ds1620 vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 txen txd rf gnd 1 rf out 2 d in 5 vcc 3 gnd 4 txm-418f 5v version only test 100n mode high 470r 10k busy 100n sw1 sw2 100n 0-5v analogue input 0v
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 14 of 15 receiver circuit (available as part number 1-485) rf environment receivers are very sensitive and like all radios can be subject to interference. care should be taken to avoid local sources of interference such as noisy switch mode power supplies or external bus micro systems. such devices can generate harmonics that have considerable energy in the uhf band. this will desensitise the receiver and may cause loss of range. aerials should be kept clear of large metallic objects or surfaces and should ideally be surrounded by ?free space?. the module manufacturers data sheets detail these requirements and should be carefully studied. +9-12v dc input +5v vi g n d vo lm7805 470r ra2 ra1 1n4001 prog port 10k 10k sout 1 sin 2 atn 3 gnd 4 p0 5 p1 6 p2 7 p3 8 p4 9 p5 10 p6 11 p7 12 pwr 24 gnd 23 res 22 +5v 21 p15 20 p14 19 p13 18 p12 17 p11 16 p10 15 p9 14 p8 13 bs2-1c led 1 2 3 serial lcd display 220u + piezo led sw1 sw2 1k 470r bc184l bc184l led 1k 470r 1n4001 aerial 10r +5v - led 0v serial data send data data ready 470r vdd 1 gp5 2 gp4 3 gp3 4 gp2 5 gp1 6 gp0 7 vss 8 NKM2401 100n rxd tp 10k rf 1 gnd 2 dtct 3 gnd 4 vcc 5 af 6 data 7 silrx-418f 100n mode low 0v
data sheet and application notes NKM2401 code/decoder chip part number 1-982 NKM2401 issue 1.1 nov-98 milford instruments/ nikam electronics www.milinst.demon.co.uk page 15 of 15 further reading radiometrix data sheets. txm-418, silrx-418, bim transceiver. see www.radiometrix.co.uk rs-232 simplified. everything you need to know about connecting, interfacing & troubleshooting peripheral devices. author: byron w.putman. publisher: prentice hall. isbn 0-13-783499-3 product order codes description order code NKM2401 modem ic 1-982 rf appkit 1-939 assembled receiver unit 1-484 assembled transmitter unit 1-485 document history issue date revision 1.0 oct-98 preliminary 1.1 oct-98 minor corrections 1.2 nov-98 stamp app circuits added copyright the information contained in this data sheet is the property of milford instruments/ nikam electronics and copyright is vested in them with all rights reserved. under copyright law this documentation may not be copied, photocopied, reproduced, translated or reduced to any electronic medium or machine readable form in whole or in part without the written consent of milford instruments / nikam electronics. disclaimer milford instruments has an on going policy to improve the performance and reliability of their products, we therefore reserve the right to make changes without notice. the information contained in this data sheet is believed to be accurate however we do not assume any responsibility for errors nor any liability arising from the application or use of any product or circuit described herein. this data sheet neither states nor implies warranty of any kind, including fitness for any particular application. milford instruments-england tel: +44 1977 683665, fax: +44 1977 681465 info@www.milinst.demon.co.uk; www.milinst.demon.co.uk end of data sheet


▲Up To Search▲   

 
Price & Availability of NKM2401

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X